<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="header::header"/>
<body>
<div id="dgtoolbar" class="datagrid-toolbar">
    <!--<a id="newbtn" href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" title="新增">新增</a>-->
    <a id="querybtn" href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" title="查询" onclick="subQueryHandler()">查询</a>
    <a id="deletebtn" href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" title="批量删除">删除</a>
    <a id="reloadbtn" href="#" class="easyui-linkbutton" iconCls="icon-reload" plain="true">刷新</a>
</div>
<table id="dg" class="easyui-datagrid"
       data-options="url:'pageQuery',idField:'iid',rownumbers:true,singleSelect:false,method:'post',toolbar:'#dgtoolbar',pagination:true,pageSize:20,pageList:[20,30,50],fit:true,onLoadSuccess:onDGLoadSuccess">
    <thead>
    <tr>
        <th data-options="field:'iid'" checkbox="true"/>
        <th data-options="field:'ctitle'" width="300" align="center">标题</th>
        <th data-options="field:'ccontent'" width="500" align="center">内容</th>
        <th data-options="field:'iadopt'" width="60" align="center" formatter="Data.issueFormat">是否采纳</th>
        <th data-options="field:'ccomment'" width="300" align="center">采纳说明</th>
        <th data-options="field:'istatus'" width="60" align="center" formatter="Data.ishandleFormat">状态</th>
        <th data-options="field:'opt',formatter:onItemOptEdit" width="40" align="center">修改</th>
        <th data-options="field:'opt1',formatter:onItemOptDelete" width="40" align="center">删除</th>
        <th data-options="field:'opt2',formatter:onItemOptShow" width="40" align="center">查看</th>
    </tr>
    </thead>
</table>
<div id="dlg" class="easyui-dialog" title="操作" style="padding:5px"
     data-options="buttons: '#dlg-buttons',closed:'true',modal:true">
    <form id="dataform" method="post">
        <table>
            <tr>
                <td><input name="iid" id="iid" type="hidden"></input></td>
            </tr>
            <tr>
                <td>标题:</td>
                <td><input name="ctitle" class="easyui-textbox" data-options="multiline:true" style="width: 300px;height:50px" readonly="readonly"/></td>
            </tr>
            <tr>
                <td>内容:</td>
                <td><input name="ccontent" class="easyui-textbox" data-options="multiline:true" style="width: 300px;height:100px" readonly="readonly"/></td>
            </tr>
            <tr>
                <td>是否采纳:</td>
                <td>
                    <input name="iadopt" class="easyui-combobox" style="width: 300px" data-options="panelHeight:'auto',url:'../dicdetails/findItems?ckey=sf',valueField:'cvalue',textField:'cname',editable:false">
                </td>
            </tr>
            <tr>
                <td>采纳说明:</td>
                <td><input name="ccomment" class="easyui-textbox" data-options="multiline:true" style="width: 300px;height:100px" maxlength="300"/></td>
            </tr>
            <tr>
                <td>状态:</td>
                <td>
                    <input name="istatus" class="easyui-combobox" style="width: 300px" data-options="panelHeight:'auto',url:'../dicdetails/findItems?ckey=dealstate',valueField:'cvalue',textField:'cname',editable:false">
                </td>
            </tr>
        </table>
    </form>
</div>
<div id="dlg-buttons">
    <a id="dlg-savebtn" href="javascript:void(0)" style="width:70px" class="easyui-linkbutton" iconCls="icon-ok">保存</a>
    <a id="dlg-closebtn" href="javascript:void(0)" style="width:70px" class="easyui-linkbutton" iconCls="icon-no">关闭</a>
</div>
<div id="dlg-query" class="easyui-dialog" title="查询" style="padding:5px"
     data-options="buttons: '#dlg-query-buttons',closed:'true',modal:true">
    <form id="dataform-query" method="post">
        <table>
            <tr>
                <td>标题:</td>
                <td><input name="ctitle" class="easyui-textbox" style="width: 200px"/></td>
            </tr>
            <tr>
                <td>内容:</td>
                <td><input name="ccontent" class="easyui-textbox" style="width: 200px"/></td>
            </tr>
            <tr>
                <td>是否采纳:</td>
                <td>
                    <input name="iadopt" class="easyui-combobox" style="width: 200px" data-options="panelHeight:'auto',url:'../dicdetails/findItems?ckey=sf',valueField:'cvalue',textField:'cname',editable:false">
                </td>
            </tr>
            <!--<tr>
                <td>采纳说明:</td>
                <td><input name="ccomment" class="easyui-textbox" style="width: 200px"/></td>
            </tr>
            <tr>
                <td>状态:</td>
                <td>
                    <input name="istatus" class="easyui-combobox" style="width: 200px" data-options="panelHeight:'auto',url:'../dicdetails/findItems?ckey=dealstate',valueField:'cvalue',textField:'cname',editable:false">
                </td>
            </tr>-->
        </table>
    </form>
</div>
<div id="dlg-query-buttons">
    <a id="dlg-query-savebtn" href="javascript:void(0)" style="width:70px" class="easyui-linkbutton"
       iconCls="icon-search">查询</a>
    <a id="dlg-query-closebtn" href="javascript:void(0)" style="width:70px" class="easyui-linkbutton" iconCls="icon-no">关闭</a>
</div>
</body>
<script type="text/javascript" th:src="@{/common/GridView.js}"></script>
</html>
